From 68043a01dc986addf3ed68fad515286a1d5179f8 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 15 Sep 2006 11:17:26 +0100 Subject: [PATCH] [XEN] Scheduler pings only CPUs in a VCPU's affinity mask to balance load. Signed-off-by: Keir Fraser --- xen/common/sched_credit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c index 3465542083..5e02ead91f 100644 --- a/xen/common/sched_credit.c +++ b/xen/common/sched_credit.c @@ -290,6 +290,7 @@ __runq_tickle(unsigned int cpu, struct csched_vcpu *new) { CSCHED_STAT_CRANK(tickle_idlers_some); cpus_or(mask, mask, csched_priv.idlers); + cpus_and(mask, mask, new->vcpu->cpu_affinity); } } @@ -1001,6 +1002,7 @@ csched_load_balance(int cpu, struct csched_vcpu *snext) } else if ( is_idle_vcpu(per_cpu(schedule_data, peer_cpu).curr) ) { + CSCHED_STAT_CRANK(steal_peer_idle); speer = NULL; } else -- 2.30.2